#ifndef _CUBEDMODULE_H
#define	_CUBEDMODULE_H

#include "Triangle.h"
#include "Vertex.h"

class CubedModule{
public:	
	Vertex max;
	Vertex min;
	Vertex center;	// srodek ciezkosci
	Vertex center0;	
	Vertex vertexes0[8]; // wierzcholki prostopadloscianu
	Vertex vertexes[8];

	CubedModule();
	void analyseTriangle(Triangle t, bool isFirst);
	void calculateCubePoints();	
	void scaleModule(float scale);
};
#endif